﻿<head>
	<meta charset="utf-8">
	<script src="../js/jquery-3.2.1.min.js"></script>
		<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
	<link rel="stylesheet" href="../css/bootstrap.min.css" >	
	<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
	<script src="../js/bootstrap.min.js" ></script>
	<link rel="stylesheet" type="text/css" href="../css/index.css">
	<title>修改结果</title>
</head>

<!-- 网站的头部公用部分 -->
	<div style="height: 60px;">
	<nav class="navbar navbar-default navbar-fixed-top top" >
		<a href="../"><img class="top_left" src="../images/log.png"></a>
		<div class="pull-right" style="margin-top: 15px;margin-right: 20px;">
			<a href="http://www.xinli001.com/ceshi">关于心理测试</a>
		</div>
		</nav>
	</div><br/><br/>
	<article style="margin-left: 50px;">
<FORM ACTION="bbs2.php" METHOD="POST" class=>
<p>请留下你的宝贵意见：<p>
<TEXTAREA NAME="ly" ROWS=3 COLS=50>
</TEXTAREA>
<p>留言者：<input type=text name=lyer value="">
<p><INPUT Type=Submit Value="提交">
</FORM>
<hr>
留言展示
<br/>
<?php
mysql_connect("localhost","root","root");
mysql_query("set names utf8");
$query="select * from bbs order by lytime desc";
$result=mysql_db_query("psychology","$query");
while($data= mysql_fetch_object($result))
{
	
	echo "留言内容：".$data->ly."<br>";
	echo "留言者：".$data->lyer."<br>";
	echo "留言时间：".$data->lytime."<br><hr/>";
}
?>
</article>
<!-- 版权 -->
	<nav>
		<div  style="text-align:center" class="navbar navbar-default navbar-fixed-bottom" role="navigation">
			<hr>
			<font>©2018 chenshuwei AND yangliu.<br/>All Rights Reserved.<br/>
			电话：0991-123456
			</font>
		</div>
	</nav>